﻿using System;
using System.ComponentModel;

namespace WebLog
{
    public class Config
    {
        [Description("开启写入")]
        public bool WriteOpen { get; set; }
        [Description("开启读取")]
        public bool ReadOpen { get; set; }
        [Description("保留几几个月内的成功日志")]
        public decimal OkDate { get; set; }
        [Description("保留几几个月内的失败日志")]
        public decimal ErrDate { get; set; }
    }
    public class ConfigInputDto
    {
        [Description("开启写入")]
        public bool? WriteOpen { get; set; }
        [Description("开启读取")]
        public bool? ReadOpen { get; set; }
        [Description("保留几几个月内的成功日志")]
        public decimal? OkDate { get; set; }
        [Description("保留几几个月内的失败日志")]
        public decimal? ErrDate { get; set; }
    }
}